package com.loadmore.common.image

import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.request.RequestOptions
import com.loadmore.common.R
import kotlinx.android.synthetic.main.card_layout.view.*

/**
 * @author sunleilei
 * @date 2018/7/12
 * @time 14:30
 */
object ImageLoader {
    fun load(context: Context, url: String?, imageView: ImageView) {
        GlideApp.with(context).setDefaultRequestOptions(RequestOptions().placeholder(R.mipmap.icon_live)).load(url).into(imageView)
    }
}
